package com.cloudeasy.provider.service;

import com.cloudeasy.provider.model.dto.email.SendEmailMessage;

/**
 * Create By 郭金宝 on 2019/1/14.<br>
 */
public interface EmailService {
    /**
     * 重置密码发送邮件.
     *
     * @param email the email
     */
    void submitResetPwdEmail(String email);

    /**
     * 发送验证码
     *
     * @param sendEmailMessage the send email message
     * @param loginName        the login name
     */
    void sendEmailCode(SendEmailMessage sendEmailMessage, String loginName);

    /**
     * 校验验证码 返回 token 用户最后修改密码使用
     *
     * @param sendEmailMessage the send email message
     * @param loginName        the login name
     */
    void checkEmailCode(SendEmailMessage sendEmailMessage, String loginName);
}
